package edu.caece.langprocessor.syntax;


public class NonTerminal extends GrammarItem {

	private String value;
	
	public NonTerminal (String value){
		this.value = value;
	}
	
	@Override
	public String getValue() {
		return value;
	}
	
	@Override
	public boolean equals(Object obj) {
		boolean isEqual = false;
		
		if (obj instanceof NonTerminal){
			NonTerminal other = (NonTerminal) obj;
			isEqual = this.value.equals(other.getValue());
		}
		return isEqual;
	}
	
	@Override
	public int hashCode() {
		return this.value.hashCode();
	}
	
	@Override
	public String toString() {
		return this.value;
	}
}
